<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新经资讯后台管理</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/jquery.pagination.css">
    <script src="../../static/admin/js/jquery-1.12.4.min.js"></script>
    <script src="../../static/admin/js/jquery.pagination.min.js"></script>
</head>
<body>
<div class="breadcrub">
    当前位置：分类管理>新闻分类管理
</div>
<form method='post'>
    <div class="pannel">
        <table class="common_table">
            <tr style="background: #00D6FF">
                <td colspan="3"><a class="addtype" style="font-size: 18px;color: green;background: #00D6FF"><b>
                    分&nbsp;&nbsp;&nbsp;类&nbsp;&nbsp;&nbsp;展&nbsp;&nbsp;&nbsp;示</b></a></td>
            </tr>

            <tr style="background: #00D6FF">
                <th width="10%" style="font-size: 18px">序号</th>
                <th width="20%" style="font-size: 18px">新闻分类</th>
                <th width="20%" style="font-size: 18px">管理新闻</th>
            </tr>
            {% for i in new %}
            <tr>
                <td width="10%" style="font-size: 15px"><input type='checkbox'><b>{{ loop.index }}</b></td>
                <td width="20%" style="font-size: 15px"><b>{{ i.name }}</b></td>
                <td style="font-size: 15px"><a href="/admin/updatenews/{{ i.id }}" class="addtype"  style="font-size: 15px;color: #000000"><b>修改</b></a>
                    <a href="/admin/deletenews/{{ i.id }}" class="addtype"  style="font-size: 15px;color: #000000"><b>删除</b></a></td>
            </tr>
            {% endfor %}

            <tr>
                <td>
                    <button type='submit'>批量删除</button>
                </td>
            </tr>
            <tr>
                <td colspan="3"><a href="/admin/addnews" class="addtype" style="font-size: 15px;color: #000000"><b>添加分类</b></a></td>
            </tr>
        </table>
    </div>
</form>
    <div id="pagination">

    </div>

</body>
<script>
    $(function () {
        $("#pagination").pagination({
            totalPage:{{totalpage}},
            currentPage:{{p}},
            callback: function (current) {
                window.location.href = "/sadmin/catelist?p=" + current
            }
        })
    })
</script>
</html>